<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>01 v-for</title>
</head>
<body>
  <div id="app">
    <ul>
      <li v-for="item of arr" :key="item.brand">
        {{ item.brand }}
        <ul>
          <li v-for="(itm, idx) of item.list" :key="index">
            {{ itm }}
          </li>
        </ul>
      </li>
    </ul>
  </div>
</body>
<script src="lib/vue.js"></script>
<script>
  new Vue({
    data: {
      arr: [
      {
        brand: '宝马',
        list: [
          'X5', 'X6'
        ]
      },
      {
        brand: '奥迪',
        list: [
          'A8', 'A6'
        ]
      },
      {
        brand: '奔驰',
        list: [
          'S500', 'S686'
        ]
      }
    ]
    }
  }).$mount('#app')
</script>
</html>